package cn.qicaiwang.open.common.enums;

/**
 * 短信验证码类型
 */
@SuppressWarnings("AlibabaEnumConstantsMustHaveComment")
public enum SmsCodeEnum {
    REGISTERORLOGIN("MOBILE_CAPTCHA:REGISTER_OR_LOGIN:", "1168945"),
    REGISTER_SUCCESS("MOBILE_CAPTCHA:REGISTER_SUCCESS:", "1168946"),
    MODIFY_MOBILE("MOBILE_CAPTCHA:MODIFY_MOBILE:", "1183114"),
    MODIFY_EMAIL("EMAIL_CAPTCHA:MODIFY_EMAIL:", "1183114"),
    FIND_PASSWORD("MOBILE_CAPTCHA:FIND_PASSWORD", "1168947"),//找回密码
    PASSWORD_RESET_SUCCESS("MOBILE_CAPTCHA:PASSWORD_RESET_SUCCESS:", "1169180"),

    PROTOCOL_VERIFY("MOBILE_CAPTCHA:PROTOCOL_VERIFY:", "1168947"),

    ;

    /**
     * 存放Redis缓存的key前缀
     */
    private String key;
    /**
     * 短信模板编号
     */
    private String templateCode;

    SmsCodeEnum(String key, String templateCode) {
        this.key = key;
        this.templateCode = templateCode;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }
}
